-- GENERATED SPELL FOR [Skeletal Mage] --


function spell0_203(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_203', 0, 1)
end

function spell1_203(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(20792,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_203', 7000, 1)
end

function Sorts_203(pUnit, Event)
local choix_sorts_203 = math.random(0, 1)
if choix_sorts_203 == 0 then
pUnit:RegisterEvent('spell0_203', 1, 1)
end
if choix_sorts_203 == 1 then
pUnit:RegisterEvent('spell1_203', 1, 1)
end
end

function mob203_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_203', math.random(1500, 3000), 1)
end

function mob203_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob203_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob203_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(203, 1, 'mob203_Action')
RegisterUnitEvent(203, 2, 'mob203_Leave')
RegisterUnitEvent(203, 3, 'mob203_Kill')
RegisterUnitEvent(203, 4, 'mob203_Die')
